<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>火云鞋神购物鞋店--个人中心</title>
    <meta name="" content=""/>
    <meta name="">
    <link rel="shortcut icon" href="../img/favicon_2.ico"/>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/base.css">
    <!--<link rel="stylesheet" href="bootstrap.min.css">-->
</head>
<body>
<!--快捷导航模块 start-->
<!--<section class="shortcut">
    <div class="w">
        <div class="fl">
            <ul>
                <li>火云鞋神欢迎您！&nbsp;</li>
                <li>
                    <a href="#">请登录</a>&nbsp;<a href="#" class="color_red">免费注册</a>
                </li>
            </ul>
        </div>
        <div class="fr">
            <ul>
                <li><a href="#">我的订单</a></li>
                <li></li>
                <li><a href="#">我的收藏</a></li>
                <li></li>
                <li><a href="#">我的物流</a></li>
                <li></li>
                <li><a href="#">个人中心</a></li>
                <li></li>
                <li><a href="#">我的优惠券</a></li>
                <li></li>
                <li><a href="#">客服服务</a></li>
            </ul>
        </div>
    </div>
</section>
&lt;!&ndash;快捷导航模块 end&ndash;&gt;
&lt;!&ndash;header头部模块 start&ndash;&gt;
<header class="header_aftersale">
    <div class="w">
        &lt;!&ndash;Logo模块 start&ndash;&gt;
        <div class="logo_right">
            <h1>
                <a href="#" title="火云鞋神商城">火云鞋神商城</a>
            </h1>
        </div>
        &lt;!&ndash;Logo模块 end&ndash;&gt;
        &lt;!&ndash;header导航模块 start&ndash;&gt;
        <ul class="lili">
            <li><a href="#">首页</a></li>
            <li><a href="#">我的订单</a></li>
            <li><a href="#">我的优惠券</a></li>
            &lt;!&ndash;<li><a href="#">我的物流</a></li>&ndash;&gt;
            &lt;!&ndash;<li><a href="#">关注的商品</a></li>&ndash;&gt;
            &lt;!&ndash;<li><a href="#">我的足迹</a></li>&ndash;&gt;
            &lt;!&ndash;<li><a href="#">订单售后</a></li>&ndash;&gt;
        </ul>
        &lt;!&ndash;header导航模块 end&ndash;&gt;
        &lt;!&ndash;search搜索模块 start&ndash;&gt;
        <div class="search_right">
            <input type="text" class="input">
            <button class="btn"><a href="#">搜索</a></button>
        </div>
        &lt;!&ndash;购物车模块 star&ndash;&gt;
        <div class="shopcar_right"><a href="#">我的购物车</a></div>
        &lt;!&ndash;购物车模块 end&ndash;&gt;
    </div>
</header>-->
<!--header头部模块 end-->
<!--更改-->
<div class="content" style="height: 740px;">
    <div class="main">
        <!--更改-->
        <div class="hd">
            <h3>收货地址</h3>
        </div>
        <!--更改-->
        <!--<script>
            var a = getCookie("userid")
        </script>-->
        <div class="dd" >
            <div class="nav_right">
                <div id="upadress" >
                    <!--<form style="line-height: 50px;background-color: white;padding-left: 80px" action="">
                        <div style="float: left;border: 2px solid red;padding-left: 30px;padding-right: 30px">
                            <div >
                                <label style="width: 20%">详细地址1：</label>
                                <div><textarea class="form-control" rows="4"
                                               style="border: 1px solid black"
                                               placeholder="请输入详细地址信息，如道路、门牌号、小区、楼栋号、单元等信息"></textarea>
                                </div>
                            </div>
                            <div>
                                <label>邮政编码1：</label>
                                <div>  <textarea class="form-control" style="border: 1px solid black"
                                                 placeholder="请填写邮编"></textarea>
                                </div>
                            </div>
                        </div>
                        <div style="float: left;margin-left: 180px;border: 2px solid red;padding-left: 30px;padding-right: 30px">
                            <div>
                                <label>详细地址2：</label>
                                <div>   <textarea class="form-control" rows="4"
                                                  placeholder="请输入详细地址信息，如道路、门牌号、小区、楼栋号、单元等信息"></textarea>
                                </div>
                            </div>
                            <div>
                                <label>邮政编码2：</label>
                                <div>  <textarea class="form-control" style="border: 1px solid black"
                                                 placeholder="请填写邮编"></textarea>
                                </div>
                            </div>
                        </div>
                        <div style="clear:both "></div>
                        <div>
                            <label>收货人姓名：</label>
                            <div>
                            <textarea class="form-control" style="border: 1px solid black"
                                      placeholder="长度不超过25个字符"></textarea>
                            </div>
                        </div>

                        <div>
                            <label>手机号码：</label>
                            <div>    <textarea class="form-control" style="border: 1px solid black"
                                               placeholder="中国大陆 +86"></textarea>
                            </div>
                        </div>
                        <div style="padding-bottom: 30px;border-top: 1px solid bisque;padding-top: 10px">
                            <input class="submit" type="submit" value="保存" onclick="f()"
                                   style="width: 20%;height:37px; background-color: red; color: white;font-size: 15px">
                        </div>

                    </form>-->
                </div>

            </div>
        </div>
    </div>
    <nav class="nav_aftersale" >
        <div class="dropdown_aftersale">
            <div class="list_txt font_family ">
                <ul class="li">
                    <li><a href="http://localhost:63343/qiguai/html/CollectShow.html?_ijt=obhlshosup6n9gvu1ojnfh003s" target="_top" >我的收藏</a></li>
                    <li><a href="http://localhost:63343/qiguai/html/uaftsale.html" target="_top" >我的售后</a></li>
                    <li><a href="http://localhost:63343/qiguai/html/ucoupon.html" target="_top" >我的优惠券</a></li>
                    <li><a href="http://localhost:63343/qiguai/html/ulogistic.html" target="_top" >我的物流</a></li>
                    <li><a href="http://localhost:63343/qiguai/html/orderpush.html" target="_top" >我的订单</a></li>
                    <!-- <li><a href="http://localhost:63343/qiguai/html/CollectShow.html" target="_top">关注的商品</a></li>-->
                    <!--<li><a href="#">我的足迹</a></li>-->
                    <li><a href="http://localhost:63343/qiguai/html/userperson.html"  target="_top" >个人信息</a></li>
                    <li><a href="http://localhost:63343/qiguai/html/adress.html" style="font-weight: bolder">收货地址</a></li>
                </ul>
            </div>
        </div>
    </nav>
</div>
<script src="../js/cookie.js"></script>
<script src="../js/jquery-3.3.1.min.js"></script>
<script>
    var a = getCookie("userid")

    $.getJSON("http://localhost:8080/selectUser?userId=" + a,function (data) {
        var html=''
        html += `
        <form style="line-height: 50px;background-color: white;padding-left: 80px" action="http://localhost:8080/updateUser/${data.userId}">
                        <div style="float: left;border: 2px solid red;padding-left: 30px;padding-right: 30px">
                            <div >
                                <label style="width: 20%">详细地址1：</label>
                                <div><textarea class="form-control" rows="4"
                                      name="userAddress"         style="border: 1px solid black"
                                               placeholder="请输入详细地址信息，如道路、门牌号、小区、楼栋号、单元等信息">${data.userAddress}</textarea>
                                </div>
                            </div>
                            <div>
                                <label>邮政编码1：</label>
                                <div>  <textarea class="form-control" style="border: 1px solid black"
                                         name="userMail"        placeholder="请填写邮编">${data.userMail}</textarea>
                                </div>
                            </div>
                        </div>
                        <div style="float: left;margin-left: 180px;border: 2px solid red;padding-left: 30px;padding-right: 30px">
                            <div>
                                <label>详细地址2：</label>
                                <div>   <textarea class="form-control" rows="4"
                                         name="reserve2"         placeholder="请输入详细地址信息，如道路、门牌号、小区、楼栋号、单元等信息">${data.reserve2}</textarea>
                                </div>
                            </div>
                            <div>
                                <label>邮政编码2：</label>
                                <div>  <textarea class="form-control" style="border: 1px solid black"
                                        name="reserve3"         placeholder="请填写邮编">${data.reserve3}</textarea>
                                </div>
                            </div>
                        </div>
                        <div style="clear:both "></div>
                        <div>
                            <label>收货人姓名：</label>
                            <div>
                            <textarea class="form-control" style="border: 1px solid black"
                                 name="userCard"       placeholder="长度不超过25个字符">${data.userCard}</textarea>
                            </div>
                        </div>

                        <div>
                            <label>手机号码：</label>
                            <div>    <textarea class="form-control" style="border: 1px solid black"
                                      name="userPhone"       placeholder="中国大陆 +86">${data.userPhone}</textarea>
                            </div>
                        </div>
                        <div style="padding-bottom: 30px;border-top: 1px solid bisque;padding-top: 10px">
                            <input class="submit" type="submit" value="保存" onclick="f()"
                                   style="width: 20%;height:37px; background-color: red; color: white;font-size: 15px">
                        </div>

                    </form>
        `
        $("#upadress").html(html)
    })


    function f() {
        alert("修改成功！！！！")
    }
</script>

</body>
</html>